package com.hulk.ratel.common.constant.enums;

import com.google.common.base.Objects;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 手续费方式
 * 
 */
@Getter
@AllArgsConstructor
public enum FeeMethod {

	PERCENT("PERCENT","百分比"),   //单笔按百分比
	FIX("FIX","固定金额");   //单笔固定金额


	private String value;

	private String desc;

	public static String explain(String value) {
		for (FeeMethod obj : FeeMethod.values()) {
			if (Objects.equal(value, obj.value)) {
				return obj.desc;
			}
		}
		return value;
	}



}
